package org.momin.service.impl;

import java.util.List;

import org.momin.bean.Systems;
import org.momin.bean.UserInfo;
import org.momin.dao.UserInfoDao;
import org.momin.dao.impl.UserInfoDaoImpl;
import org.momin.service.UserInfoService;

public class UserInfoServiceImpl implements UserInfoService{
	UserInfoDao dao=new UserInfoDaoImpl();
	@Override
	public UserInfo login(String name, String pwd) {
		
		return dao.getUserByNameAndPwd(name, pwd);
	}
	@Override
	public List<Systems> getSystemsByRolesId(int rid) {
		return dao.getSystemsByRolesId(rid);
	}

}
